package com.drawingtimer.admin.model.from;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TTimeSegmentRecordFrom {

	/**
	 * 工序ID
	 */
	@Schema(title = "工序ID")
	private Long processId;

	/**
	 * 流转卡号
	 */
	@Schema(title = "流转卡号")
	private String flowCardNumber;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime startTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime endTime;

	/**
	 * 报工工号
	 */
	@Schema(title = "报工工号")
	private String reportEmployeeId;

	/**
	 * 完成数量
	 */
	@Schema(title = "完成数量")
	private BigDecimal finishedQuantity;

	/**
	 * 不合格数量
	 */
	@Schema(title = "不合格数量")
	private BigDecimal defectiveQuantity;

	/**
	 * 不合格原因
	 */
	@Schema(title = "不合格原因")
	private String defectiveReason;

}
